#include <boost/scoped_array.hpp>
#include <iostream>

int main(){
	boost::scoped_array<int> arr(new int[2]);
	*arr.get() = 1;
    arr[1] = 2; 
	std::cout << arr << std::endl;
	return 0;
}
